package com.tang.generate.mapper

import com.baomidou.mybatisplus.core.metadata.IPage
import com.github.yulichang.base.MPJBaseMapper
import com.tang.generate.domain.GenTable
import org.apache.ibatis.annotations.Param

interface GenTableMapper : MPJBaseMapper<GenTable> {


    fun getTableList(
            page: IPage<Map<String, String>>,
            @Param("databaseName") databaseName: String?,
            @Param("tableName") tableName: String?
    ): IPage<Unit>

    fun getTableListByTableNameList(
            @Param("databaseName") databaseName: String?,
            @Param("tableNameList") tableNameList: List<String?>
    ): List<Map<String, String>>

    fun getTableIndex(@Param("databaseName") databaseName: String?,
                      @Param("tableName") tableName: String?): List<Map<String, String>>
}
